a=eval(input("输入行数："))
for i in range(1,a+1):
    for b in range(a-i):
        print(" ",end='')
    for c in range(2*i-1):
        print("*",end='')
    print()